package com.ali.framework.common.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * 分页数据封装类
 *
 * @Author mysland
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@ApiModel(value="BasePage", description="基础分页类")
public class BasePage<T> {

    @ApiModelProperty(value = "分页序号")
    private Integer pageNum;

    @ApiModelProperty(value = "分页大小")
    private Integer pageSize;

    @ApiModelProperty(value = "总页数")
    private Integer totalPage;

    @ApiModelProperty(value = "总记录数")
    private Long total;

    @ApiModelProperty(value = "分页数据列表")
    private List<T> list;
    
    @ApiModelProperty(value = "枚举集合")
    private Map<String, Object> enums;
    
}
